<?php
/************************************************************
*                                                           *
*       author: Sebastian Elias Franco Brantes              *
*       description:  Controlador de Css y Js que ocupa     *
*                       la vista                            *
*       Date: 28-02-2013                                    *
*                                                           *
************************************************************/
class CssJsController{
    private $_js  = '';
    private $_css = '';

    function __construct($controlador, $accion){
        switch($controlador){
            //<editor-fold defaultstate="collapsed" desc="Index">
            case '';  
                switch($accion){
                    case '';
                        $this->_css='';
                        
                        $this->_js='<script type="text/javascript" src="./JS/login.js"></script>
                            <script type="text/javascript" src="JS/md5.js"></script>';
                    break;

                }
            break;
            //</editor-fold>
        
            //<editor-fold defaultstate="collapsed" desc="Noticias">
            case 'noticias';  
                switch($accion){
                    case 'index';
                        $this->_css='<link rel="stylesheet" type="text/css" href="./Css/jquery.dataTables_themeroller.css">
                                    <link rel="stylesheet" type="text/css" href="./Css/TableTools.css">';
                        
                        $this->_js='<script type="text/javascript" src="./JS/jquery.dataTables.js"></script>
                                    <script type="text/javascript" src="./JS/sistema/noticias.js"></script>';
                    break;
                }
            break;
            //</editor-fold>
        
        } 
    }
    
    function getJs() {
            return $this->_js;
    }
    function getCss() {
            return $this->_css;
    }
    
}

?>
